package com.example.bijiabao.servicesImpl;

import com.example.bijiabao.entity.user;
import com.example.bijiabao.mapper.userMapper;
import com.example.bijiabao.services.userServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class userServicesImpl implements userServices {
    @Autowired
    private userMapper userMapper;

    @Override
    public List<user> findUser() {
        List<user> list = userMapper.findUser();
                return list;
    }
    @Override
    public user checkuser(String userName) {
        return userMapper.checkuser(userName);
    }

    @Override
    public Integer registerUser(user user) {
        return userMapper.registerUser(user);
    }



}
